/*
 * @Author: your name
 * @Date: 2021-06-15 20:26:19
 * @LastEditTime: 2021-08-16 22:30:43
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \hqbAdmin\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../components/Login.vue'
import Home from '../components/Home.vue'
import Welcome from '../components/Welcome.vue'
import Users from '../components/user/Users.vue'
import Notice from '../components/notice/Notice.vue'
import Opinion from '../components/Opinion.vue'
import Version from '../components/Version.vue'
import Merchants from '../components/merchants/Merchants.vue'
import Category from '../components/Category.vue'
import Jurisdiction from '../components/Jurisdiction.vue'
import Marketingchannels from '../components/channel/Marketingchannels.vue'
import Commoditychannel from '../components/Commoditychannel.vue'
import Appmarket from '../components/Appmarket.vue'
import AddAppmarket from '../components/appmarket/Addappmarket.vue'
import Loantransaction from '../components/Loantransaction.vue'
import Purchasetransaction from '../components/Purchasetransaction.vue'
import Loansurpluses from '../components/Loansurpluses/Loansurpluses.vue'
import LoanMarketType from '../components/Loansurpluses/LoanMarketType.vue'
import LoansurplusesDetail from '../components/Loansurpluses/LoansurplusesDetail.vue'

import CommodityMarket from '../components/CommodityMarket/CommodityMarket.vue'
import CommodityMarketDetail from '../components/CommodityMarket/CommodityMarketDetail.vue'

import AddMerchant from '../components/merchants/addMerchant.vue'
import UpdateMerchantAll from '../components/merchants/updateMerchantAll.vue'
import UpdateMerchantOne from '../components/merchants/updateMerchantOne.vue'
import EditMerchants from '../components/merchants/editMerchants.vue'
import QueryItems from '../components/merchants/queryItems.vue'
import MarketingData from '../components/marketing/MarketingData.vue'
import MarketingEdit from '../components/marketing/MarketingEdit.vue'
import MarketingAdd from '../components/marketing/MarketingAdd.vue'
import approvalMerchants from '../components/merchants/approvalMerchants/approvalMerchants.vue'
import auditShop from '../components/merchants/approvalMerchants/auditShop.vue'
import stagesTrading from '../components/stagesTrading.vue'
import auditSceneLoan from '../components/auditSceneLoan.vue'
import Role from '../components/Role.vue'

import loanMarketAnalyse from "../components/analyse/loanMarketAnalyse.vue"
import channelAnalyse from "../components/analyse/channelAnalyse.vue"
import appSet from "../components/set/appset.vue"
import customerService from "../components/customerservice/customerservice.vue"
import loanMarketChannel from "../components/channel/LoanMarketChannel.vue"




Vue.use(VueRouter)

const routes = [
	{ path:'/',redirect: '/login'},
	{ path:'/login',component:Login },
	{ path:'/home',
	  component:Home ,
	  redirect:'/welcome',
	  children:[
		{ path:'/welcome',component:Welcome,meta:{keepAlive:false,isBack:false}},
		{ path:'/user',component:Users,meta:{keepAlive:false,isBack:false} },
		{ path:'/notice',component:Notice,meta:{keepAlive:false,isBack:false} },
		{ path:'/opinion',component:Opinion,meta:{keepAlive:false,isBack:false} },
		{ path:'/version',component:Version,meta:{keepAlive:false,isBack:false} },
		{ path:'/merchants',component:Merchants,meta:{keepAlive:true,isBack:false} },
		{ path:'/category',component:Category,meta:{keepAlive:false,isBack:false} },
		{ path:'/jurisdiction',component:Jurisdiction,meta:{keepAlive:false,isBack:false} },
		{ path:'/commoditychannel',component:Commoditychannel,meta:{keepAlive:false,isBack:false} },
		{ path:'/marketingchannels',component:Marketingchannels,meta:{keepAlive:true,isBack:false} },
		{ path:'/appmarket',component:Appmarket,meta:{keepAlive:false,isBack:false} },
		{ path:'/addAppmarket',component:AddAppmarket,meta:{keepAlive:false,isBack:false} },
		{ path:'/loantransaction',component:Loantransaction,meta:{keepAlive:false,isBack:false} },
		{ path:'/purchasetransaction',component:Purchasetransaction,meta:{keepAlive:false,isBack:false} },
		{ path:'/loansurpluses',component:Loansurpluses,meta:{keepAlive:true,isBack:false}},
		{ path:'/loanMarketType',component:LoanMarketType,meta:{keepAlive:true,isBack:false}},
		{ path:'/loansurplusesDetail',component:LoansurplusesDetail,meta:{keepAlive:false,isBack:false} },
		{ path:'/commodityMarket',component:CommodityMarket,meta:{keepAlive:true,isBack:false}},
		{ path:'/commodityMarketDetail',component:CommodityMarketDetail,meta:{keepAlive:false,isBack:false} },
		{ path:'/addMerchant',component:AddMerchant,meta:{keepAlive:true,isBack:false} },
		{ path:'/updateMerchantAll',component:UpdateMerchantAll,meta:{keepAlive:false,isBack:false} },
		{ path:'/updateMerchantOne',component:UpdateMerchantOne,meta:{keepAlive:false,isBack:false} },
		{ path:'/editMerchants',component:EditMerchants,meta:{keepAlive:false,isBack:false} },
		{ path:'/queryItems',component:QueryItems,meta:{keepAlive:false,isBack:false} },
		{ path:'/marketingData',component:MarketingData,meta:{keepAlive:false,isBack:false} },
		{ path:'/marketingEdit',component:MarketingEdit,meta:{keepAlive:false,isBack:false} },
		{ path:'/marketingAdd',component:MarketingAdd,meta:{keepAlive:false,isBack:false} },
		{ path:'/approvalMerchants',component:approvalMerchants,meta:{keepAlive:false,isBack:false} },
		{ path:'/auditShop',component:auditShop,meta:{keepAlive:false,isBack:false} },
		{ path:'/stagesTrading',component:stagesTrading,meta:{keepAlive:false,isBack:false} },
		{ path:'/auditSceneLoan',component:auditSceneLoan,meta:{keepAlive:false,isBack:false} },
		{ path:'/role',component:Role,meta:{keepAlive:false,isBack:false} },
		{ path:'/loanMarketAnalyse',component:loanMarketAnalyse,meta:{keepAlive:false,isBack:false} },
		{ path:'/channelAnalyse',component:channelAnalyse,meta:{keepAlive:false,isBack:false} },
		{ path:'/appset',component:appSet,meta:{keepAlive:false,isBack:false} },
		{ path:'/customerService',component:customerService,meta:{keepAlive:false,isBack:false} },
		{ path:'/loanMarketChannel',component:loanMarketChannel,meta:{keepAlive:false,isBack:false} }
		
	]},
	
]

const router = new VueRouter({
  routes
})

export default router
